<link type="text/css" rel="stylesheet" href="<?php echo $this->basePath('public/css/dbblack/css/ucenter.css'); ?>" />

<div class="container clearfix">
    <?php echo $this->partial('shopfront/home/left_menu.phtml'); ?>
    <div class="uc-content">
        <h1 class="title"><span><?php echo $this->translate('微信绑定'); ?></span></h1>
        <?php if ($this->success_msg != '') { ?>
            <div class="message_success ie6png" style="height: 20px;"><?php echo $this->success_msg; ?></div>
        <?php } ?>
        <?php if ($this->false_msg != '') { ?>
            <div class="message_error ie6png" style="height: 20px;"><?php echo $this->false_msg; ?></div>
        <?php } ?>
        <div class="simple-box">
            <ul class="form">
                <li>
                    <?php echo $this->translate('绑定状态'); ?>：
                    <?php if(isset($this->other_login->ol_id) and !empty($this->other_login->ol_id)) { ?>
                        <strong style="color: red;"><?php echo $this->translate('已经与支付宝绑定完成'); ?></strong>
                    <?php } else echo $this->translate('未绑定');  ?>
                </li>
                <?php if(!isset($this->other_login->ol_id)) { ?>
                    <li>
                        <?php echo $this->translate('支付宝绑定'); ?>：
                        <a href="<?php echo $this->url('frontuser/default', array('action'=>'otherlogin'), array('query'=>array('login_type'=>'alipay'))); ?>" class="btn btn-primary"><?php echo $this->translate('点击完成支付宝绑定'); ?></a>
                    </li>
                <?php } else { ?>
                    <li>
                        <?php echo $this->translate('支付宝解绑'); ?>：
                        <a onclick="return window.confirm('您确实要解绑支付宝登录吗？')" href="<?php echo $this->url('fronthome/default', array('action'=>'delotherlogin'), array('query'=>array('login_type'=>'alipay'))); ?>" class="btn btn-danger"><?php echo $this->translate('点击解绑支付宝'); ?></a>
                        <P style="color: red;font-size: 14px;">(<?php echo $this->translate('如果您要解绑并且从来没有设置过登陆密码，请在解绑前设置登录密码，否则解绑后将无法登陆'); ?>)</P>
                    </li>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>